package com.shiro.app;

import org.apache.shiro.authc.AuthenticationToken;

public class AppUsernameAuth implements AuthenticationToken {
    private String staffId;

    public AppUsernameAuth(String staffId) {
        this.staffId = staffId;
    }

    public AppUsernameAuth() {

    }

    @Override
    public Object getPrincipal() {
        return staffId;
    }

    @Override
    public Object getCredentials() {
        return staffId;
    }
}
